﻿package PinballCode {
	
	// Flipper class
	public class Flipper extends Rectangle {
		
		private var left:Boolean;		// whether it is left or right flipper
		private var pivot:Vertex;		// pivot point of flipper
		
		// constructor
		public function Flipper(left:Boolean, ht:int, widt:int, color:uint=0xff0000) {
			super(ht,widt,color);
			this.left = left;
			trace(left);
			if(left)
			pivot = new Vertex(0,0);
			else
			pivot = new Vertex(widt,0);
		}
		
		// rotates flipper
		public function rotate(dt:Number)
		{
			
		}
	}
}